import { Component } from "react";
import {ContContext} from "../context/contContext"
import  "./theme/css/ms.scss"

class nameCtrl extends Component{
    static contextType=ContContext;
    inputChange=(val)=>{
        this.context.infChange({"describe":val.target.value});
    }
    render(){
        return (
            <div className="ms-box">
                <span>描述：{this.context.obj.describe}</span>
                <div>修改描述<input onInput={this.inputChange}></input></div>
            </div>
        )
    }
    
}
export default nameCtrl;

